package com.deke.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deke.entity.EduChapter;
import com.deke.entity.EduCourse;
import com.deke.entity.Order;
import com.deke.vo.Result;
import org.apache.ibatis.annotations.Select;

/**
 * @author ：ludi（206913808@qq.com）
 * @date ：Created in 2022/12/28 15:23
 * @description：
 * @modified By：
 * @version:
 */
public interface QianOrderDao extends BaseMapper<Order> {

    @Select(value = "select * from edu_course ec join edu_teacher e on ec.teacher_id = e.id where ec.id= #{id}")
    EduCourse queryAllCourseAndTeacherName(String id);


}